//package com.lixingye.meowstar.controller;
//
//
//import com.lixingye.meowstar.common.AppResult;
//import com.lixingye.meowstar.exception.ApplicationException;
//
//import io.swagger.v3.oas.annotations.tags.Tag;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//@Tag(name = "测试接口")
//@RestController
//@RequestMapping("/test")
//public class TestController {
//    @RequestMapping("/hello")
//    public String hello(){
//        return "hello cat";
//    }
//    @RequestMapping("/exception")
//    public AppResult testException() throws Exception {
//        throw new Exception("默认exception测试");
//    }
//    @RequestMapping("/appException")
//    public AppResult testAPPException() throws Exception {
//        throw new ApplicationException("ApplicationException测试");
//    }
//    @RequestMapping("/helloworld")
//    public String helloWorld(String word){
//        return word+"hello world";
//    }
//}
